#include <iostream>
#include <vector>
struct flatable {
    char name[10];
    double volume;
    float price;
};

int main()
{
    using namespace std;
    flatable f0 = {"mike", 100, 200.22};
    flatable f1 = f0;
    cout << "f1 name: " << f1.name << " f1 volume: " << f1.volume << " f1 price: " << f1.price << endl;
    vector<int> choises(3);
    choises[0] = 10;
    choises[1] = 20;
    choises[2] = 30;
    cout << "vector1 : " << choises[1] << endl;
    // 这里获取到的是随机数
    cout << "vector-2: " << choises[-2] << endl;
    return 0;
}
